package com.woniu.adminservice.service;

import com.woniu.adminservice.entity.Roles;
import java.util.List;

public interface RolesService {

    Roles queryById(Integer id);

    List<Roles> queryAllByLimit(int offset, int limit);
    
    List<Roles> findAll();
    Roles insert(Roles roles);

    Roles update(Roles roles);

    void deleteById(Integer id);

    List<Roles> selectAllByPage(Integer currentPage, Integer pageSize);

    Roles findByRoleName(String roleName);

    void saveRole(Roles roles, List<Integer> keys);

    void deleteByIds(List roleIds);

    Roles selectById(Integer id);

    Boolean checkRoleName(Roles roles);

    void updateRoleById(Roles roles, List<Integer> menuIDs);
}